<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="WebPages.aspx.cs" Inherits="WebPages" title="Project Monitoring System" culture="Auto:en-US" uiculture="auto" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1"
    Visible="false">
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <table style="width: 100%; text-align: center">
        <tr align="left" valign="top" style="width: 100%">
            <td style="width: 90%">
                <asp:ObjectDataSource ID="ODSPages" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                    SelectMethod="GetPages" TypeName="IPTableAdapters.PagesTableAdapter" UpdateMethod="Update">
                    <DeleteParameters>
                        <asp:Parameter Name="PageName" Type="String" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="PageName" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="PageName" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
                <table width="100%">
                    <tr>
                        <td align="center">
                            <asp:Label ID="lblError" runat="server" CssClass="error" ForeColor="Red" Width="100%" meta:resourcekey="lblErrorResource1"></asp:Label>
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="Panel1" runat="server" Height="450px" ScrollBars="none" Width="970px" meta:resourcekey="Panel1Resource1">
					<table>
						<tr>
							<td align="right">
								<asp:Button ID="btnNewWebPage" runat="server" CausesValidation="False" CssClass="submit" Text="New WebPage" meta:resourcekey="btnNewWebPageResource1" OnClick="btnNewWebPage_Click" />
							</td>
						</tr>
						<tr>
							<td>
								<asp:GridView CssClass="Grid" ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84"
									BorderColor="#660000" GridLines="Both" BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0"
									DataKeyNames="PageName,Description" DataSourceID="ODSPages" Width="960px" AllowSorting="True"
									meta:resourcekey="GridView1Resource1" AllowPaging="True" PageSize="30" OnRowCreated="GridView1_RowCreated">
									<FooterStyle CssClass="GridFooterStyle"/>
									<Columns>
										<asp:BoundField DataField="PageName" HeaderText="Page Name" SortExpression="PageName"
											meta:resourcekey="BoundFieldResource5">
											<ItemStyle HorizontalAlign="Left" />
											<HeaderStyle CssClass="GridHeaderStyle" HorizontalAlign="left" Width="200px" />
										</asp:BoundField>
										<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" meta:resourcekey="BoundFieldResource6">
											<ItemStyle HorizontalAlign="Left" />
											<HeaderStyle CssClass="GridHeaderStyle" HorizontalAlign="left" Width="700px" />
										</asp:BoundField>
										<asp:TemplateField HeaderText="Operation" meta:resourcekey="TemplateFieldResource2" HeaderStyle-Width="60px">
											<ItemTemplate>
												&nbsp;<a href="WebPages_edit.aspx?pn=<%# Eval("PageName")%>&descn=<%# Eval("Description") %>">Edit</a>
											</ItemTemplate>
											<ItemStyle Wrap="False" />
											<HeaderStyle CssClass="GridHeaderStyle" Wrap="False" />
										</asp:TemplateField>
									</Columns>
									<RowStyle CssClass="GridRowStyle"/>
									<AlternatingRowStyle CssClass="GridAltRowStyle"/>
									<SelectedRowStyle CssClass="GridSelectedRowStyle"/>
									<PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
									<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White"/>
								</asp:GridView>
							</td>
						</tr>
					</table>
                </asp:Panel>
            </td>
        </tr>
    </table>
    <br />
   
</asp:Content>

